//
//  DXCHeaderView.m
//  AnnCar_user
//
//  Created by LiBenCan on 17/10/26.
//  Copyright © 2017年 LiBenCan. All rights reserved.
//

#import "DXCHeaderView.h"
@interface DXCHeaderView()
@property (nonatomic,strong)UIImageView *imageV;//大图
@property (nonatomic,strong)UILabel *titleLab;//文字展示
@end
@implementation DXCHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.backgroundColor = [UIColor whiteColor];
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    //左边图片
    _imageV = [TomamaUI createImageView:CGRectMake(SCREENW/2-105*screenW_6/2, 15*screenW_6, 105*screenW_6, 85*screenW_6) backGroundImageV:@"My_greenCar"];
    [self addSubview:_imageV];
    
    //按钮标题
    _titleLab = [TomamaUI createLabel:CGRectMake(0,CGRectGetMaxY(_imageV.frame)+10*screenW_6,SCREENW, 20*screenW_6) textAligment:1 font:[UIFont systemFontOfSize:13*screenW_6] textColor:TextGray text:@"请耐心等待，稍后师傅会及时联系您！"];
    [self addSubview:_titleLab];
}

@end
